package LearnAlgorithm.a_eclipseHello;

/**
 * @version: 1.0
 * @Author: wuqiu
 * @date: 2023-07-22 21:26
 * @description: LeetcodeLearnAlgorithm -> LearnAlgorithm.a_eclipseHello
 */
public class test7 {
    public static void main(String[] args) {
        int[] arr1 = new int[5];
        int[] arr2 = new int[] {1,2,3,4,5,6};
        /*
        我们定义的arr1,arr2都仅仅是指针
        下面的赋值，是从地址层面上，覆盖了arr1的原数据
        所以arr1能够访问索引5
         */
        arr1 = arr2;
        System.out.println(arr1[5]);
    }
}
